package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Size implements Parcelable {

	@JsonProperty("size")
	String size;
	@JsonProperty("price")
	String price;
	@JsonProperty("prices")
	Price prices;

	public String getSize() {
		return this.size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public Price getPrices() {
		return this.prices;
	}

	public void setPrices(Price prices) {
		this.prices = prices;
	}

	protected Size(Parcel in) {
		size = in.readString();
		price = in.readString();
		prices = (Price) in.readValue(Price.class.getClassLoader());
	}

	public Size() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(size);
		dest.writeString(price);
		dest.writeValue(prices);
	}

	public static final Parcelable.Creator<Size> CREATOR = new Parcelable.Creator<Size>() {
		public Size createFromParcel(Parcel in) {
			return new Size(in);
		}

		public Size[] newArray(int size) {
			return new Size[size];
		}
	};
}